﻿using System;
using System.Web.Routing;

namespace WebFabricator.org
{
    /// <summary>
    /// Fabricator factory interface
    /// </summary>
    /// <typeparam name="T"></typeparam>
    [Namespace(typeof(IWebFabricatorFactory<>))]
    public interface IWebFabricatorFactory<T>
    {
        IWebFabricator<IWebFabric<T>> CreateFabricator(IWebFabric<T> fabric);
        void ReleaseFabricator(IWebFabricator<IWebFabric<T>> fabricator);
    }
}
